PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


DrawThemeChasingArrows

Draws an asynchronous arrows indicator.

pascal OSStatus DrawThemeChasingArrows (
                     const Rect *bounds,
                     UInt32 index,
                     ThemeDrawState state,
                     ThemeEraseUPP eraseProc,
                     UInt32 eraseData);
bounds
A pointer to a structure of type Rect . Before calling DrawThemeChasingArrows , set the rectangle to contain the asynchronous arrows, in local coordinates.
index
An unsigned 32-bit value. Pass a value specifying the current animation step of the arrows. To animate the arrows, increment the initial value by 1 with each call to DrawThemeChasingArrows .
state
A value of type ThemeDrawState . Pass a constant specifying the state in which to draw the asynchronous arrows indicator; see Theme Draw State Constants . The asynchronous arrows indicator can be drawn as active or inactive; passing kThemeStatePressed produces an error.
eraseProc
A value of type ThemeEraseUPP . If you have a custom background, pass a universal procedure pointer to an application-defined function such as that described in MyThemeEraseProc . DrawThemeChasingArrows calls that function to erase the background before drawing the asynchronous arrows. If you pass NULL , no erasing occurs.
eraseData
An unsigned 32-bit integer. Provide any data to be passed in to the eraseData parameter of the callback function specified in the eraseProc parameter.
function result
A result code; see Result Codes .
DISCUSSION

The DrawThemeChasingArrows function draws a theme-compliant asynchronous arrows (also known as "chasing arrows") indicator.

VERSION NOTES

Available with Appearance Manager 1.1 and later.


© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)